package com.bwie.es.controller;

import com.bwie.common.domain.Shop;
import com.bwie.common.result.Result;
import com.bwie.es.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：作者姓名
 * @Package：com.bwie.es.controller
 * @Project：_yk
 * @name：Escontroller
 * @Date：2024/6/17 12:58
 */
@RestController
@RequestMapping("/Es")
public class EsController {

    @Autowired
    private EsService esService;

    @PostMapping("/toEs")
    private Result<List<Shop>> List(@RequestParam Shop shop){
        List<Shop> list = esService.List(shop);
        return Result.success(list);
    }




}
